import request from '@/helpers/request';

export const reqFetchConstruction = (params) => {
  return request('/api/construction/select', {
    method: 'GET',
    params,
  });
};
export const reqAddConstruction = (params) => {
  return request('/api/construction/insert', {
    method: 'POST',
    params,
  });
};
export const reqDelConstruction = (params) => {
  return request('/api/construction/delete', {
    method: 'DELETE',
    params,
  });
};
export const reqUpdateConstruction = (params) => {
  return request('/api/construction/update', {
    method: 'PUT',
    params,
  });
};

export const reqGetFence = (params) => {
  return request('/api/fence/select-all', {
    method: 'GET',
    params,
  });
};
